﻿using System;
using Kiva7.Utilities;
using Kiva7.DataResponse;
using Kiva7.DataClasses;

namespace Kiva7.DataRequests
{
    public class StatisticsRssRequest : DataRequest<StatisticsRssResponse, StatisticItem>
    {
        public StatisticsRssRequest()
            : base(true, false)
        {
        }

        public Uri BuildUri()
        {
            UrlCreator url = new UrlCreator("http://www.kiva.org/rss/siteStats");

            return url.ToUri();
        }

        public void GetStatistics()
        {
            LoadResponse(BuildUri());
        }
    }
}
